<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/views/productStock.js"></script>
</head>
<body>

    <div id="productStock_dialog">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="productStock_sureNumber">确认数量</a>
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="productStock_reviseNumber">修改数量</a>
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="productStock_allocation">库存调拨</a>
        <span>关键字:</span>

        <input class="easyui-textbox" data-options="plain:true" id="keyword">
        <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="productStock_search">查询</a>
    </div>

    <div class="easyui-datagrid" id="productStock_datagrid"></div>

    <div id="productStock_dialog_reviseNumber">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="reviseNumberSave">确认</a>
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="cancel">取消</a>
    </div>


    <div class="easyui-dialog" id="reviseNumber_dialog" data-options="buttons:'#productStock_dialog_reviseNumber',closed:true">
        <form id="reviseNumber_dialog_form" >
            <input type="hidden" name="id"/>
            <table style="font-size: 10px;width: 230px;">
                <tr>
                    <td>商品名称:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="product.productName" data-options="readonly:true">
                    </td>

                </tr>
                <tr>
                    <td>原有库存:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="number" data-options="readonly:true">
                    </td>

                </tr>
                <tr>
                    <td>修改数量:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="reviseNumber">
                    </td>

                </tr>
                <tr>
                    <td>操作人员:</td>
                    <td>
                        <input name="operator.id" id="operator" class="easyui-combobox" data-options="valueField:'id',textField:'name',url:'/operator/listAll'"/>
                    </td>

                </tr>
                <tr>
                    <td>备注信息:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="remark">
                    </td>

                </tr>
            </table>
        </form>
    </div>


    <div id="all_dialog_buttons">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="all_save">确认</a>
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="cancel">取消</a>
    </div>

    <%--库存调拨--%>
    <div class="easyui-dialog" id="alle_dialog" data-options="buttons:'#all_dialog_buttons',closed:true">
        <form id="alle_form" method="post">
            <input type="hidden" name="id"/>
            <table style="font-size: 10px;width: 250px;">
                <tr>
                    <td>商品名称:</td>
                    <td>
                        <input type="text" id="product.id" class="easyui-textbox" name="product.productName" data-options="readonly:true">
                    </td>

                </tr>
                <tr>
                    <td>库存:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="number" data-options="readonly:true">
                    </td>

                </tr>
                <tr>
                    <td>供应商:</td>
                    <td>
                        <input type="text" id="alle_supplier" name="supplier.id" class="easyui-combobox" name="supplier.id" data-options="valueField:'id',textField:'name',url:'supplier/getSelectList',readonly:true">
                    </td>

                </tr>
                <tr>
                    <td>所在仓库:</td>
                    <td>
                        <input type="text" class="easyui-combobox" name="allDepot.id" data-options="valueField:'id',textField:'name',url:'/depot/list'">
                    </td>

                </tr>
                <tr>
                    <td>调入仓库:</td>
                    <td>
                        <input id="cc" class="easyui-combobox" name="depot.id"
                               data-options="valueField:'id',textField:'name',url:'/depot/list'" />
                    </td>

                </tr>
                <tr>
                    <td>调入数量:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="outNumber">
                    </td>

                </tr>
                <tr>
                    <td>操作人员:</td>
                    <td>
                        <input name="operator.id" name="oprator.id" class="easyui-combobox" data-options="valueField:'id',textField:'name',url:'/operator/listAll'"/>
                    </td>

                </tr>
                <tr>
                    <td>备注信息:</td>
                    <td>
                        <input type="text" class="easyui-textbox" name="remark">
                    </td>

                </tr>
            </table>
        </form>
    </div>

</body>
</html>
